package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.LabMajorNineMapper;
import com.erms.lab.domain.LabMajorNine;
import com.erms.lab.service.ILabMajorNineService;
import com.erms.common.core.text.Convert;

/**
 * 专业机房九Service业务层处理
 * 
 * @author smile
 * @date 2020-05-04
 */
@Service
public class LabMajorNineServiceImpl implements ILabMajorNineService 
{
    @Autowired
    private LabMajorNineMapper labMajorNineMapper;

    /**
     * 查询专业机房九
     * 
     * @param equipId 专业机房九ID
     * @return 专业机房九
     */
    @Override
    public LabMajorNine selectLabMajorNineById(Long equipId)
    {
        return labMajorNineMapper.selectLabMajorNineById(equipId);
    }

    /**
     * 查询专业机房九列表
     * 
     * @param labMajorNine 专业机房九
     * @return 专业机房九
     */
    @Override
    public List<LabMajorNine> selectLabMajorNineList(LabMajorNine labMajorNine)
    {
        return labMajorNineMapper.selectLabMajorNineList(labMajorNine);
    }

    /**
     * 新增专业机房九
     * 
     * @param labMajorNine 专业机房九
     * @return 结果
     */
    @Override
    public int insertLabMajorNine(LabMajorNine labMajorNine)
    {
        return labMajorNineMapper.insertLabMajorNine(labMajorNine);
    }

    /**
     * 修改专业机房九
     * 
     * @param labMajorNine 专业机房九
     * @return 结果
     */
    @Override
    public int updateLabMajorNine(LabMajorNine labMajorNine)
    {
        return labMajorNineMapper.updateLabMajorNine(labMajorNine);
    }

    /**
     * 删除专业机房九对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorNineByIds(String ids)
    {
        return labMajorNineMapper.deleteLabMajorNineByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专业机房九信息
     * 
     * @param equipId 专业机房九ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorNineById(Long equipId)
    {
        return labMajorNineMapper.deleteLabMajorNineById(equipId);
    }
}
